﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bmz.IM.Model
{
    public class MessageVO
    {
        public void ReversalFromAndToInfo()
        {
            string userId = FromUserId;
            string ip = FromIp;
            int port = FromPort;
            FromUserId = ToUserId;
            FromIp = ToIp;
            FromPort = ToPort;
            ToUserId = userId;
            ToIp = ip;
            ToPort = port;
        }
        public string Type { get; set; }
        public string Content { get; set; }
        public string FromUserId { get; set; }
        public string FromIp { get; set; }
        public int FromPort { get; set; }
        public string ToUserId { get; set; }
        public string ToIp { get; set; }
        public int ToPort { get; set; }
    }
}
